import request from "@/util/request";

/**
 * @description 商城列表
 * @param data
 * @returns {Promise}
 */
export function getShoppingListApi(data) {
	return request({
		url: '/api/goods/selectGoodsList',
		method: 'GET',
		data
	})
}
/**
 * @description 乡级活动tab列表
 * @param data
 * @returns {Promise}
 */
export function getTypeListApi(data) {
	return request({
		url: '/api/goods/selectTypeList',
		method: 'GET',
		data
	})
}
/**
 * @description 商城详情
 * @param data
 * @returns {Promise}
 */
export function getShoppingByIdApi(data) {
	return request({
		url: '/api/goods/selectContentById',
		method: 'GET',
		data
	})
}
/**
 * @description 兑换
 * @param data
 * @returns {Promise}
 */
export function getRedeemApi(data) {
	return request({
		url: '/api/goods/redeemNow',
		method: 'GET',
		data
	})
}